import request from '@/utils/request'

///图库管理///////////////////////////////////////////
  //下载网络图片
  export function downloadnetworkpic(data) {
      return request({
        url: '/admin/downloadnetworkpic',
        method: 'POST',
        data
      })
  }

  //图库分类列表
  export function imagescategorylist(query) {
      return request({
        url: '/admin/imagescategorylist',
        method: 'get',
        params: query
      })
  }

  //图库分类排序
  export function imagescategorysortsave(data) {
      return request({
        url: '/admin/imagescategorysortsave',
        method: 'POST',
        data
      })
  }

  //图库分类增加
  export function imagescategoryadd(data) {
      return request({
        url: '/admin/imagescategoryadd',
        method: 'POST',
        data
      })
  }

  //图库分类修改
  export function imagescategoryedit(data) {
      return request({
        url: '/admin/imagescategoryedit',
        method: 'POST',
        data
      })
  }

  //图库分类删除
  export function imagescategorydel(data) {
      return request({
        url: '/admin/imagescategorydel',
        method: 'POST',
        data
      })
  }

  //图库列表
  export function imageslist(query) {
      return request({
        url: '/admin/imageslist',
        method: 'get',
        params: query
      })
  }

  //移动图片到其他分类
  export function imagesmove(data) {
      return request({
        url: '/admin/imagesmove',
        method: 'post',
        data
      })
  }

  //修改图片的名称
  export function imagenamesave(data) {
    return request({
      url: '/admin/imagenamesave',
      method: 'post',
      data
    })
  }

  //上传图片剪切
  export function uploadpicture(data) {
    return request({
      url: '/admin/uploadpicture',
      method: 'post',
      data
    })
  }


///文件库管理///////////////////////////////////////////
//下载网络图片到文件库
export function downloadnetworkpictofile(data) {
  return request({
    url: '/admin/downloadnetworkpictofile',
    method: 'POST',
    data
  })
}

//文件库分类列表
export function filescategorylist(query) {
  return request({
    url: '/admin/filescategorylist',
    method: 'get',
    params: query
  })
}

//文件库分类排序
export function filescategorysortsave(data) {
  return request({
    url: '/admin/filescategorysortsave',
    method: 'POST',
    data
  })
}

//文件库分类增加
export function filescategoryadd(data) {
  return request({
    url: '/admin/filescategoryadd',
    method: 'POST',
    data
  })
}

//文件库分类修改
export function filescategoryedit(data) {
  return request({
    url: '/admin/filescategoryedit',
    method: 'POST',
    data
  })
}

//文件库分类删除
export function filescategorydel(data) {
  return request({
    url: '/admin/filescategorydel',
    method: 'POST',
    data
  })
}

//文件库列表
export function fileslist(query) {
  return request({
    url: '/admin/fileslist',
    method: 'get',
    params: query
  })
}

//移动文件到其他分类
export function filesmove(data) {
  return request({
    url: '/admin/filesmove',
    method: 'post',
    data
  })
}

//修改文件的名称
export function filenamesave(data) {
return request({
  url: '/admin/filenamesave',
  method: 'post',
  data
})
}
